package com.gmcc.docmanager.control;

import com.gmcc.docmanager.entity.Document;
import com.gmcc.docmanager.loader.Response;

public class DocumentDetailResponse extends Response {

	private Document document;

	public DocumentDetailResponse() {

	}

	public DocumentDetailResponse(Response response) {
		setCode(response.getCode());
		setDescription(response.getDescription());
		if (response.getResponseObject() != null
				&& response.getResponseObject() instanceof Document) {
			setDocument((Document) response.getResponseObject());
		}
	}

	public Document getDocument() {
		return document;
	}

	public void setDocument(Document document) {
		this.document = document;
	}

}
